﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Vaffanculo.Presentation.Component.WizardControl.Utils;

namespace Vaffanculo.Presentation.Component.WizardControl.Wizards.WizardsMDX
{
    /// <summary>
    /// Interaction logic for DesignDimensions.xaml
    /// </summary>
    public partial class DesignDimensions : System.Windows.Controls.UserControl, IPageComponent
    {
        private ActionWizardManager actionWizardManager;
        private List<DimentionLevelModel> dimentiosAndLevel;

        public DesignDimensions()
        {
            actionWizardManager = new ActionWizardManager();
            dimentiosAndLevel = new List<DimentionLevelModel>();
            dimentiosAndLevel.Add(new DimentionLevelModel {DbField = "a",IsDimention = true, Name = "boris", TypeAttibute = "d"});
            InitializeComponent();
            dgDimentionlevel.ItemsSource = dimentiosAndLevel;
            
            
        }

        public string KeyText
        {
            get { return "Diseño de Dimensiones"; }
        }

        private void BtnaddDimentionClick(object sender, RoutedEventArgs e)
        {
            DimentionForm dimentionForm = new DimentionForm(actionWizardManager);
            dimentionForm.ShowDialog();
            
        }

        private void BtnaddLevelClick(object sender, RoutedEventArgs e)
        {
            LevelForm levelForm = new LevelForm();
            levelForm.ShowDialog();
        }
    }
}
